package com.luotao.test.user;

import com.luotao.devp.base.socket.model.SocketExecutor;
import com.luotao.test.netty.model.req.ReqTrade;
import com.luotao.test.netty.model.resp.RespTrade;
import org.springframework.stereotype.Service;

/**
 * Created by IntelliJ IDEA.
 * User: luotao
 * Date: 12-5-29
 * Time: 21:58
 */
@Service
public class AccountService implements SocketExecutor<ReqTrade, RespTrade> {
    private int scale;

    public int getScale() {
        return scale;
    }

    public void setScale(int scale) {
        this.scale = scale;
    }

    @Override
    public RespTrade execute(ReqTrade reqTrade) {
        RespTrade respTrade = new RespTrade();
        respTrade.setUsername(reqTrade.getUsername());
        respTrade.setPassword(reqTrade.getPassword());
        return respTrade;
    }
}
